function getGoodsList() {
    $.get('goodsAndShoppingCart/getGoodsList.php', function (resText) {
        console.log("resText", resText);
        // console.log(resText[1].goodsName);
        let re = "";
        for (let i = 0; i < resText.length; i++) {
            re += `
            <a class="lianjie" href="xiangQing.html?goodsId=${resText[i].goodsId}">
                    <li class="xiangqing_1">
                        <img src="${resText[i].goodsImg}" alt="">
                        <p>${resText[i].goodsName}</p>
                        <p>${resText[i].beiyong1}</p>
                        <h2>￥${resText[i].goodsPrice}</h2>
                        <ol class="ol">
                            <li><img src="${resText[i].beiyong3}"alt="">li>
                            <li><img src="${resText[i].beiyong4}"alt="">li>
                        </ol>
                        <div class="huodong"><img src="${resText[i].beiyong2}"alt=""></div>
                    </li>
            </a>
            `
        }

        $(".listOne").html(re)

        // $('.xiangqing_1').click(function () {

        //     // location.href = 'xiangQing.html'
        //     location.href = `xiangQing.html?goodsId=${resText[i].goodsId}`

        // })


    }, "json")

    // 点击每个li 跳转到详情页（放大镜）


}

getGoodsList();

/*  */ 